# coding=utf-8
"""
    @project: 15python_spider
    @Author：frank
    @file： 02_json_dump.py
    @date：2024/3/7 20:42
"""
import json

app_info = {'appName': '虾米', 'link': 'http://www.xiami.com'}
with open('xiaomi_app.json', 'a') as f:
    # f.write(json.dumps(app_info, ensure_ascii=False))
    json.dump(app_info, f, ensure_ascii=False)
